import request from "@/utils/request.js";

/**
 * 用户登陆
 * @param params
 * @returns {AxiosPromise}
 */
export function login(params) {
  return request({
    url: "/userService/api/manager/login",
    method: "post",
    data: params
  });
}

/**
 * 机构注册获取验证码
 * @param params
 * @returns {AxiosPromise}
 */
export function sendVerificationCode(params) {
  return request({
    url: "/teachingPlatformService/api/stOrg/sendVerificationCode",
    method: "post",
    data: params //注意：如果是get请求请使用 params: params
  });
}

/**
 * 退出登录
 * @param params
 * @returns {AxiosPromise}
 */
export function loginOut(params) {
  return request({
    url: "/userService/api//manager/loginOut",
    method: "post",
    data: params
  });
}
